﻿<vw:View x:Class="sonic.Samples.Client.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:vw="clr-namespace:sonic.Samples.Infrastructure.Views;assembly=Infrastructure"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation" 
    Width="Auto" Height="Auto" MinWidth="300" MinHeight="200">
    <vw:View.Resources>

        <DataTemplate x:Key="CustomTabItemHeaderTemplate">
            <Grid>
                <TextBlock Text="{Binding DisplayName}"/>
            </Grid>
        </DataTemplate>
        <Style x:Key="CustomTabItemStyle" TargetType="controls:TabItem">
            <Setter Property="HeaderTemplate" Value="{StaticResource CustomTabItemHeaderTemplate}" />
        </Style>
    </vw:View.Resources>
    <Grid>
        <Grid.Background>
            <LinearGradientBrush>
                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                <GradientStop Color="#FCFFF5" Offset="0.992"/>
                <GradientStop Color="#3E606F" Offset="0.185"/>
            </LinearGradientBrush>
        </Grid.Background>

        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Border Margin="10,5,10,10" Grid.Row="1" CornerRadius="4,4,4,4" BorderBrush="#193441" Background="#FFFFFF" BorderThickness="2,2,2,2">
            <controls:TabControl cal:RegionManager.RegionName="MainRegion" 
                                 cal:TabControlRegionAdapter.ItemContainerStyle="{StaticResource CustomTabItemStyle}" />
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="150,5,0,0" Width="Auto" Text="QuickStart" FontWeight="Normal" Foreground="#FF373737" FontSize="24" FontFamily="Corbel"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,5,0,0" Width="Auto" Text="Bing Maps" FontWeight="Bold" Foreground="#FF373737" FontSize="24" FontFamily="Corbel"/>
        <Line Margin="0,0,0,0" VerticalAlignment="Bottom" Height="10" />
    </Grid>
</vw:View>
